function unique(arr) {
  let result = [];
  let obj = {};
  arr.forEach((item) => {
    if (obj[item] === undefined) {
      obj[item] = true;
      result.push(item);
    }
  });
  return result;
}
